GoXam for WPF v3
MakeBitmap(Size,Double,Point,Double,Action<BitmapSource>) Method
Northwoods.GoXam Namespace > DiagramPanel Class > MakeBitmap Method : MakeBitmap(Size,Double,Point,Double,Action<BitmapSource>) Method
the size of the resulting bitmap, rounded up to the nearest integer
bitmap resolution
a Point in model coordinates for the top-left corner of the area to be rendered
a value of 1.0 is normal; the value must be a positive number. Smaller values produce smaller-looking parts.
an Action taking the BitmapSource to be performed later; this may be null
Return a bitmap showing the parts in a particular area, drawn at a given scale.
Syntax

Parameters

bmpsize
the size of the resulting bitmap, rounded up to the nearest integer
dpi
bitmap resolution
viewpos
a Point in model coordinates for the top-left corner of the area to be rendered
scale
a value of 1.0 is normal; the value must be a positive number. Smaller values produce smaller-looking parts.
act
an Action taking the BitmapSource to be performed later; this may be null

Return Value

a BitmapSource
Remarks

The diagram must already be visible and fully initialized before this method is able to render anything.

Although a BitmapSource is returned immediately, it will not immediately contain the expected bits. You may access the bitmap contents in the act action or thereafter.

See Also

Reference

DiagramPanel Class
DiagramPanel Members
Overload List